﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace B.S.DataBase.MyProject.Domain.Materials
{
    /// <summary>
    /// 采购订单物料信息表
    /// </summary>
    public class Materials_Info
    {
        /// <summary>
        /// 物料信息id
        /// </summary>
        [Key]
        public int MaterialsInfoid { get; set; }


        /// <summary>
        /// 单据编码   外键  （销售订单）
        /// </summary>
        public string SaleCode { get; set; }
        /// <summary>
        /// 跟单编号
        /// </summary>
        public string? Document {  get; set; }


        /// <summary>
        /// 计划单号
        /// </summary>
        public string? DocumentStatus { get; set; }


        /// <summary>
        /// 物料编码(选择物料外键)
        /// </summary>
        public int Materialid { get; set; }



        /// <summary>
        /// 物料名称
        /// </summary>
        public string? MaterialName { get; set; }



        /// <summary>
        /// 型号规格
        /// </summary>
        public string? ModelSper { get; set; }




        /// <summary>
        /// 主计量
        /// </summary>
        public string? ModePrimary { get; set; }



        /// <summary>
        /// 需求日期
        /// </summary>
        public DateTime? ModeDate { get; set; }

      


        /// <summary>
        /// 数量
        /// </summary>
        public int ModeQuantity { get; set; }


        /// <summary>
        /// 单价
        /// </summary>
        public decimal ModeUnitPrice { get; set; }
        

        /// <summary>
        /// 金额
        /// </summary>
        public decimal ModeAmount { get; set; }

        /// <summary>
        /// 到货数量
        /// </summary>
        public int ModeReceived { get; set; }

        /// <summary>
        /// 采购说明
        /// </summary>
        public string? ModePurchase { get; set; }
    }
}
